﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebForms/SiteWF.master" AutoEventWireup="true" CodeBehind="RoomTypeAdd1.aspx.cs" Inherits="WaterfrontLodge.WebForms.RoomTypeMgt.RoomTypeAdd1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset>
        <legend>Add Room Type</legend>

        <table>
            <tr>
                <th><div class="display-label">Description:</div></th>
                <td><div class="display-field">
                    <asp:TextBox ID="txtDescription" runat="server" MaxLength="256" ></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvDescroption" runat="server" 
                        ControlToValidate="txtDescription" ErrorMessage="Description is required."
                        Display="Dynamic" Font-Bold="False" ForeColor="Red" 
                        ToolTip="Description cannot be blank"></asp:RequiredFieldValidator>
                    <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
                </div></td>
            </tr>

        <tr>
            <th><div class="display-label">Room Size:</div></th>
            <td><div class="display-field">
                <asp:TextBox ID="txtRoomSize" runat="server" MaxLength="256" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvRoomSize" runat="server" 
                    ControlToValidate="txtRoomSize" ErrorMessage="Room Size is required."
                    Display="Dynamic" Font-Bold="False" ForeColor="Red" 
                    ToolTip="Roomsize cannot be blank"></asp:RequiredFieldValidator>
                    </div>
            </td>
        </tr>

        <tr>
            <th><div class="display-label">Max No. of Occupant:</div></th>
            <td><div class="display-field">
                <asp:TextBox ID="txtMaxOccupant" runat="server" MaxLength="1">0</asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ErrorMessage="Max 9 persons allowed." ControlToValidate="txtMaxOccupant" 
                    ValidationExpression="[1-9]+" 
                    ForeColor="Red" ToolTip="Max 9 persons allowed." Display="Dynamic"></asp:RegularExpressionValidator>
                </div>
            </td>
        </tr>

        <tr>
            <th><div class="display-label">Standard Price</div></th>
            <td><div class="display-field">
                <asp:TextBox ID="txtStdPrice" runat="server" MaxLength="6">0</asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorPrice" runat="server" 
                    ControlToValidate="txtStdPrice" ErrorMessage="Standard Price is required."
                    Display="Dynamic" Font-Bold="False" ForeColor="Red" 
                    ToolTip="Roomsize cannot be blank"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revStdPrice" runat="server" 
                    ErrorMessage="Invalid amount." ControlToValidate="txtStdPrice" 
                    ValidationExpression="[0-9]+" 
                    ForeColor="Red" ToolTip="Unit of Standard Price must be in cent." Display="Dynamic"></asp:RegularExpressionValidator>
                    </div>
            </td>
        </tr>

        </table>

        <asp:Button ID="Button1" runat="server" Text="Next" onclick="Button1_Click" />

    </fieldset>
</asp:Content>
